/**
 * 构造指定大小（0 ~ 999）的数组
 */
export type buildArray<
    Length extends number,
    E = unknown,
    Array extends unknown[] = [],
> = Array['length'] extends Length ? Array : buildArray<Length, E, [...Array, E]>

/**
 * 解析数字字符串
 */
export type ParseNumber<S> = S extends `${infer N extends number}` ? N : never
